<?php
//session.phpでログイン判断
$web_root_path = substr($_SERVER['SCRIPT_FILENAME'] ,0 , -strlen($_SERVER['SCRIPT_NAME']));
require_once($web_root_path . "/lib/MyReplyUtil.class.php");
require_once("session.php");
require("libs/Smarty.class.php");
$smarty = new Smarty;

//クラスを読み込む
$submit_util = new MyReplyUtil();
if($submit_util->submitPageCheck()):
//データを受け取る
$submit_util->getDataFromFrom();
$submit_util->checkErrorFromFrom();
$submit_util->insertDataToDb();

$smarty->assign("message",$submit_util->getMessage());
$smarty->display("reply_submit.tpl");

endif;?>